package com.jiyun.passenger.controller;

import com.jiyun.passenger.service.CityService;
import com.jiyun.pojo.BaseCityGradeManage;
import com.jiyun.pojo.BaseCityGradeManageVo;
import com.jiyun.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/city")
public class CityController {
    @Autowired
    CityService cityService;
    @PostMapping("/findByCityList")
    public Result findByCityList(@RequestBody BaseCityGradeManage baseCityGradeManage){
        return Result.ok(cityService.findByCityList(baseCityGradeManage));
    }
}
